﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
using System.Data;

namespace ConfExpert.Forms.Cad
{
    public partial class Cad2 : XForm
    {
        public Cad2()
        {
            InitializeComponent();
        }

        private void Cad1_Load(object sender, EventArgs e)
        {
            DataTable dt = Session.DataManager.ExecuteDataTableByQuery("Select CAD_DosyaId,DosyaAdi,DegistirilmeTarihi,Tip from CAD_Dosya");
            gvSablon.Init(dt);
            btnKaydet.ItemClick+=btnKaydet_ItemClick;
        }

        private void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gvSablon.Update();
        }
    }
}
